@hua-labs/ui 2.2.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +91 -43
- package/dist/{ComponentLayout-BhM4VSoq.d.mts → ComponentLayout-Clf6C2jV.d.mts} +37 -3
- package/dist/DashboardSidebar-ZulecqKs.d.mts +54 -0
- package/dist/DashboardToolbar-BRZayZNz.d.mts +122 -0
- package/dist/EmptyState-SQ3Z6Vf2.d.mts +64 -0
- package/dist/{Modal-CrXmb3Ll.d.mts → Modal-DKKtBtbh.d.mts} +12 -6
- package/dist/{Section-BWzyshgX.d.mts → Section-DKdIG1sg.d.mts} +11 -12
- package/dist/SectionHeader-DHwQ_xh8.d.mts +1653 -0
- package/dist/{Switch-Dzm5TLR3.d.mts → Switch-D0l7SJrz.d.mts} +31 -15
- package/dist/Tooltip-Cv7nYhPW.d.mts +304 -0
- package/dist/advanced/Logo.d.ts +8 -4
- package/dist/advanced/Logo.d.ts.map +1 -1
- package/dist/advanced/dashboard.d.ts +28 -6
- package/dist/advanced/dashboard.d.ts.map +1 -1
- package/dist/advanced-dashboard.d.mts +9 -2278
- package/dist/advanced-dashboard.mjs +1 -33
- package/dist/advanced-dashboard.mjs.map +1 -1
- package/dist/advanced-emotion.d.mts +13 -5
- package/dist/advanced-emotion.mjs +1 -1
- package/dist/advanced-motion.d.mts +136 -56
- package/dist/advanced-motion.mjs +1 -1
- package/dist/advanced.d.mts +69 -36
- package/dist/advanced.mjs +14 -3
- package/dist/advanced.mjs.map +1 -1
- package/dist/chunk-32OZGTPV.mjs +41 -0
- package/dist/chunk-32OZGTPV.mjs.map +1 -0
- package/dist/chunk-6WBFZ2KV.mjs +3 -0
- package/dist/chunk-6WBFZ2KV.mjs.map +1 -0
- package/dist/chunk-7CGJQSJO.mjs +3 -0
- package/dist/chunk-7CGJQSJO.mjs.map +1 -0
- package/dist/chunk-7T3IUG3G.mjs +3 -0
- package/dist/chunk-7T3IUG3G.mjs.map +1 -0
- package/dist/chunk-AJOGTUWS.mjs +3 -0
- package/dist/chunk-AJOGTUWS.mjs.map +1 -0
- package/dist/chunk-AQTSQYH2.mjs +3 -0
- package/dist/chunk-AQTSQYH2.mjs.map +1 -0
- package/dist/chunk-B2MRZJQA.mjs +3 -0
- package/dist/chunk-B2MRZJQA.mjs.map +1 -0
- package/dist/chunk-BOX4TONF.mjs +3 -0
- package/dist/chunk-BOX4TONF.mjs.map +1 -0
- package/dist/chunk-C2DOXNBK.mjs +3 -0
- package/dist/chunk-C2DOXNBK.mjs.map +1 -0
- package/dist/chunk-CQBMR7VU.mjs +3 -0
- package/dist/chunk-CQBMR7VU.mjs.map +1 -0
- package/dist/chunk-CYAAAEPJ.mjs +3 -0
- package/dist/chunk-CYAAAEPJ.mjs.map +1 -0
- package/dist/chunk-D7MTTTQY.mjs +8 -0
- package/dist/chunk-D7MTTTQY.mjs.map +1 -0
- package/dist/chunk-DABVKUJN.mjs +3 -0
- package/dist/chunk-DABVKUJN.mjs.map +1 -0
- package/dist/chunk-EK6BLFVQ.mjs +3 -0
- package/dist/chunk-EK6BLFVQ.mjs.map +1 -0
- package/dist/chunk-FVUAVGP5.mjs +3 -0
- package/dist/chunk-FVUAVGP5.mjs.map +1 -0
- package/dist/chunk-GAIUZVNC.mjs +3 -0
- package/dist/chunk-GAIUZVNC.mjs.map +1 -0
- package/dist/chunk-HLBIIF4I.mjs +3 -0
- package/dist/chunk-HLBIIF4I.mjs.map +1 -0
- package/dist/chunk-I6NCGF6E.mjs +3 -0
- package/dist/chunk-I6NCGF6E.mjs.map +1 -0
- package/dist/chunk-J46VEBVF.mjs +3 -0
- package/dist/chunk-J46VEBVF.mjs.map +1 -0
- package/dist/chunk-JNW3CLCA.mjs +3 -0
- package/dist/chunk-JNW3CLCA.mjs.map +1 -0
- package/dist/chunk-JY3QVUGW.mjs +3 -0
- package/dist/chunk-JY3QVUGW.mjs.map +1 -0
- package/dist/chunk-KHBZOGUU.mjs +3 -0
- package/dist/chunk-KHBZOGUU.mjs.map +1 -0
- package/dist/chunk-KPNNAQLI.mjs +3 -0
- package/dist/chunk-KPNNAQLI.mjs.map +1 -0
- package/dist/chunk-L2LGSILS.mjs +13 -0
- package/dist/chunk-L2LGSILS.mjs.map +1 -0
- package/dist/chunk-LPHUWTQ2.mjs +3 -0
- package/dist/chunk-LPHUWTQ2.mjs.map +1 -0
- package/dist/chunk-M4JE7TQL.mjs +3 -0
- package/dist/chunk-M4JE7TQL.mjs.map +1 -0
- package/dist/chunk-MEDKGNLV.mjs +3 -0
- package/dist/chunk-MEDKGNLV.mjs.map +1 -0
- package/dist/chunk-MR46CSMC.mjs +3 -0
- package/dist/chunk-MR46CSMC.mjs.map +1 -0
- package/dist/chunk-NSDWT2JM.mjs +3 -0
- package/dist/chunk-NSDWT2JM.mjs.map +1 -0
- package/dist/chunk-OBMOTQEU.mjs +3 -0
- package/dist/chunk-OBMOTQEU.mjs.map +1 -0
- package/dist/chunk-RICRFXFP.mjs +3 -0
- package/dist/chunk-RICRFXFP.mjs.map +1 -0
- package/dist/chunk-SOK7VBSM.mjs +13 -0
- package/dist/chunk-SOK7VBSM.mjs.map +1 -0
- package/dist/chunk-SPZ7SZH4.mjs +3 -0
- package/dist/chunk-SPZ7SZH4.mjs.map +1 -0
- package/dist/chunk-TB3DARQO.mjs +3 -0
- package/dist/chunk-TB3DARQO.mjs.map +1 -0
- package/dist/chunk-TND4HPKW.mjs +51 -0
- package/dist/chunk-TND4HPKW.mjs.map +1 -0
- package/dist/chunk-TSAXVD2H.mjs +35 -0
- package/dist/chunk-TSAXVD2H.mjs.map +1 -0
- package/dist/chunk-UR3TIWBS.mjs +3 -0
- package/dist/chunk-UR3TIWBS.mjs.map +1 -0
- package/dist/chunk-XU2XBAEW.mjs +3 -0
- package/dist/chunk-XU2XBAEW.mjs.map +1 -0
- package/dist/chunk-XXHDNZTG.mjs +3 -0
- package/dist/chunk-XXHDNZTG.mjs.map +1 -0
- package/dist/chunk-YW5DA7Q6.mjs +3 -0
- package/dist/chunk-YW5DA7Q6.mjs.map +1 -0
- package/dist/chunk-ZTHUGQZL.mjs +3 -0
- package/dist/chunk-ZTHUGQZL.mjs.map +1 -0
- package/dist/chunk-ZVCGC6EV.mjs +3 -0
- package/dist/chunk-ZVCGC6EV.mjs.map +1 -0
- package/dist/chunk-ZZ67E3M5.mjs +3 -0
- package/dist/chunk-ZZ67E3M5.mjs.map +1 -0
- package/dist/{common-YLvZxA_K.d.mts → common-Bej8Okcg.d.mts} +1 -1
- package/dist/components/Accordion.d.ts +14 -7
- package/dist/components/Accordion.d.ts.map +1 -1
- package/dist/components/Action.d.ts.map +1 -1
- package/dist/components/ActionToolbar.d.ts +10 -6
- package/dist/components/ActionToolbar.d.ts.map +1 -1
- package/dist/components/Alert.d.ts +16 -2
- package/dist/components/Alert.d.ts.map +1 -1
- package/dist/components/Autocomplete.d.ts +6 -4
- package/dist/components/Autocomplete.d.ts.map +1 -1
- package/dist/components/Avatar.d.ts +20 -7
- package/dist/components/Avatar.d.ts.map +1 -1
- package/dist/components/Badge.d.ts +27 -9
- package/dist/components/Badge.d.ts.map +1 -1
- package/dist/components/Bookmark.d.ts +4 -2
- package/dist/components/Bookmark.d.ts.map +1 -1
- package/dist/components/BottomSheet.d.ts +13 -9
- package/dist/components/BottomSheet.d.ts.map +1 -1
- package/dist/components/Box.d.ts +9 -0
- package/dist/components/Box.d.ts.map +1 -0
- package/dist/components/Breadcrumb.d.ts +9 -4
- package/dist/components/Breadcrumb.d.ts.map +1 -1
- package/dist/components/Button.d.ts +3 -29
- package/dist/components/Button.d.ts.map +1 -1
- package/dist/components/Button.variants.d.ts +54 -10
- package/dist/components/Button.variants.d.ts.map +1 -1
- package/dist/components/Card.d.ts +49 -14
- package/dist/components/Card.d.ts.map +1 -1
- package/dist/components/ChatMessage.d.ts +3 -2
- package/dist/components/ChatMessage.d.ts.map +1 -1
- package/dist/components/Checkbox.d.ts +5 -2
- package/dist/components/Checkbox.d.ts.map +1 -1
- package/dist/components/CodeBlock.d.ts +8 -5
- package/dist/components/CodeBlock.d.ts.map +1 -1
- package/dist/components/ColorPicker.d.ts +4 -2
- package/dist/components/ColorPicker.d.ts.map +1 -1
- package/dist/components/Command.d.ts +28 -14
- package/dist/components/Command.d.ts.map +1 -1
- package/dist/components/ComponentLayout.d.ts +5 -2
- package/dist/components/ComponentLayout.d.ts.map +1 -1
- package/dist/components/ConfirmModal.d.ts +4 -0
- package/dist/components/ConfirmModal.d.ts.map +1 -1
- package/dist/components/Container.d.ts +18 -5
- package/dist/components/Container.d.ts.map +1 -1
- package/dist/components/ContextMenu.d.ts +36 -36
- package/dist/components/ContextMenu.d.ts.map +1 -1
- package/dist/components/DatePicker.d.ts +12 -5
- package/dist/components/DatePicker.d.ts.map +1 -1
- package/dist/components/Divider.d.ts +2 -1
- package/dist/components/Divider.d.ts.map +1 -1
- package/dist/components/Drawer.d.ts +17 -12
- package/dist/components/Drawer.d.ts.map +1 -1
- package/dist/components/Dropdown.d.ts +25 -7
- package/dist/components/Dropdown.d.ts.map +1 -1
- package/dist/components/EmotionAnalysis.d.ts +3 -1
- package/dist/components/EmotionAnalysis.d.ts.map +1 -1
- package/dist/components/EmotionButton.d.ts +3 -1
- package/dist/components/EmotionButton.d.ts.map +1 -1
- package/dist/components/EmotionMeter.d.ts +3 -1
- package/dist/components/EmotionMeter.d.ts.map +1 -1
- package/dist/components/EmotionSelector.d.ts +3 -1
- package/dist/components/EmotionSelector.d.ts.map +1 -1
- package/dist/components/FeatureCard.d.ts +9 -3
- package/dist/components/FeatureCard.d.ts.map +1 -1
- package/dist/components/Form.d.ts +20 -54
- package/dist/components/Form.d.ts.map +1 -1
- package/dist/components/FormControl.d.ts +3 -2
- package/dist/components/FormControl.d.ts.map +1 -1
- package/dist/components/Grid.d.ts +11 -4
- package/dist/components/Grid.d.ts.map +1 -1
- package/dist/components/HeroSection.d.ts +4 -2
- package/dist/components/HeroSection.d.ts.map +1 -1
- package/dist/components/Icon/Icon.d.ts +12 -8
- package/dist/components/Icon/Icon.d.ts.map +1 -1
- package/dist/components/IconsaxGallery/index.d.ts +8 -5
- package/dist/components/IconsaxGallery/index.d.ts.map +1 -1
- package/dist/components/InfoCard.d.ts +5 -2
- package/dist/components/InfoCard.d.ts.map +1 -1
- package/dist/components/Input.d.ts +29 -4
- package/dist/components/Input.d.ts.map +1 -1
- package/dist/components/Label.d.ts +15 -10
- package/dist/components/Label.d.ts.map +1 -1
- package/dist/components/LanguageToggle.d.ts +5 -3
- package/dist/components/LanguageToggle.d.ts.map +1 -1
- package/dist/components/Link.d.ts +17 -6
- package/dist/components/Link.d.ts.map +1 -1
- package/dist/components/LoadingSpinner.d.ts +7 -3
- package/dist/components/LoadingSpinner.d.ts.map +1 -1
- package/dist/components/Menu.d.ts +59 -60
- package/dist/components/Menu.d.ts.map +1 -1
- package/dist/components/Modal.d.ts +12 -6
- package/dist/components/Modal.d.ts.map +1 -1
- package/dist/components/Navigation.d.ts +26 -11
- package/dist/components/Navigation.d.ts.map +1 -1
- package/dist/components/NumberInput.d.ts +5 -2
- package/dist/components/NumberInput.d.ts.map +1 -1
- package/dist/components/PageNavigation.d.ts +6 -3
- package/dist/components/PageNavigation.d.ts.map +1 -1
- package/dist/components/PageTransition.d.ts +2 -2
- package/dist/components/PageTransition.d.ts.map +1 -1
- package/dist/components/Pagination.d.ts +5 -2
- package/dist/components/Pagination.d.ts.map +1 -1
- package/dist/components/Panel.d.ts +1 -7
- package/dist/components/Panel.d.ts.map +1 -1
- package/dist/components/Popover.d.ts +25 -9
- package/dist/components/Popover.d.ts.map +1 -1
- package/dist/components/Pressable.d.ts +14 -0
- package/dist/components/Pressable.d.ts.map +1 -0
- package/dist/components/Progress.d.ts +36 -13
- package/dist/components/Progress.d.ts.map +1 -1
- package/dist/components/Prose.d.ts +51 -0
- package/dist/components/Prose.d.ts.map +1 -0
- package/dist/components/Radio.d.ts +29 -33
- package/dist/components/Radio.d.ts.map +1 -1
- package/dist/components/ScrollArea.d.ts +8 -9
- package/dist/components/ScrollArea.d.ts.map +1 -1
- package/dist/components/ScrollIndicator.d.ts +9 -8
- package/dist/components/ScrollIndicator.d.ts.map +1 -1
- package/dist/components/ScrollProgress.d.ts +3 -2
- package/dist/components/ScrollProgress.d.ts.map +1 -1
- package/dist/components/ScrollToTop.d.ts +5 -5
- package/dist/components/ScrollToTop.d.ts.map +1 -1
- package/dist/components/Section.d.ts +12 -9
- package/dist/components/Section.d.ts.map +1 -1
- package/dist/components/SectionHeader.d.ts +3 -2
- package/dist/components/SectionHeader.d.ts.map +1 -1
- package/dist/components/Select.d.ts +18 -5
- package/dist/components/Select.d.ts.map +1 -1
- package/dist/components/Skeleton.d.ts +43 -15
- package/dist/components/Skeleton.d.ts.map +1 -1
- package/dist/components/Slider.d.ts +7 -5
- package/dist/components/Slider.d.ts.map +1 -1
- package/dist/components/Stack.d.ts +22 -6
- package/dist/components/Stack.d.ts.map +1 -1
- package/dist/components/StatsPanel.d.ts +4 -2
- package/dist/components/StatsPanel.d.ts.map +1 -1
- package/dist/components/Switch.d.ts +9 -4
- package/dist/components/Switch.d.ts.map +1 -1
- package/dist/components/Table.d.ts +43 -18
- package/dist/components/Table.d.ts.map +1 -1
- package/dist/components/Tabs.d.ts +50 -77
- package/dist/components/Tabs.d.ts.map +1 -1
- package/dist/components/Text.d.ts +11 -0
- package/dist/components/Text.d.ts.map +1 -0
- package/dist/components/Textarea.d.ts +24 -6
- package/dist/components/Textarea.d.ts.map +1 -1
- package/dist/components/ThemeToggle.d.ts +18 -27
- package/dist/components/ThemeToggle.d.ts.map +1 -1
- package/dist/components/Timeline.d.ts +4 -2
- package/dist/components/Timeline.d.ts.map +1 -1
- package/dist/components/Toast.d.ts +1 -1
- package/dist/components/Toast.d.ts.map +1 -1
- package/dist/components/Toggle.d.ts +11 -2
- package/dist/components/Toggle.d.ts.map +1 -1
- package/dist/components/Tooltip.d.ts +5 -2
- package/dist/components/Tooltip.d.ts.map +1 -1
- package/dist/components/Upload.d.ts +5 -3
- package/dist/components/Upload.d.ts.map +1 -1
- package/dist/components/advanced/AdvancedPageTransition.d.ts +7 -5
- package/dist/components/advanced/AdvancedPageTransition.d.ts.map +1 -1
- package/dist/components/advanced/AnimatedGradient.d.ts +6 -2
- package/dist/components/advanced/AnimatedGradient.d.ts.map +1 -1
- package/dist/components/advanced/Carousel.d.ts +3 -1
- package/dist/components/advanced/Carousel.d.ts.map +1 -1
- package/dist/components/advanced/DotNav.d.ts +12 -5
- package/dist/components/advanced/DotNav.d.ts.map +1 -1
- package/dist/components/advanced/GlowCard.d.ts +4 -1
- package/dist/components/advanced/GlowCard.d.ts.map +1 -1
- package/dist/components/advanced/HorizontalScroll.d.ts +4 -1
- package/dist/components/advanced/HorizontalScroll.d.ts.map +1 -1
- package/dist/components/advanced/ImageReveal.d.ts +23 -1
- package/dist/components/advanced/ImageReveal.d.ts.map +1 -1
- package/dist/components/advanced/Marquee.d.ts +4 -2
- package/dist/components/advanced/Marquee.d.ts.map +1 -1
- package/dist/components/advanced/Parallax.d.ts +4 -2
- package/dist/components/advanced/Parallax.d.ts.map +1 -1
- package/dist/components/advanced/SpotlightCard.d.ts +13 -12
- package/dist/components/advanced/SpotlightCard.d.ts.map +1 -1
- package/dist/components/advanced/TextReveal.d.ts +5 -1
- package/dist/components/advanced/TextReveal.d.ts.map +1 -1
- package/dist/components/advanced/TiltCard.d.ts +6 -2
- package/dist/components/advanced/TiltCard.d.ts.map +1 -1
- package/dist/components/advanced/VideoBackground.d.ts +4 -1
- package/dist/components/advanced/VideoBackground.d.ts.map +1 -1
- package/dist/components/advanced/blog-editor/BlogEditor.d.ts +4 -2
- package/dist/components/advanced/blog-editor/BlogEditor.d.ts.map +1 -1
- package/dist/components/advanced/blog-editor/BlogEditorActions.d.ts +4 -2
- package/dist/components/advanced/blog-editor/BlogEditorActions.d.ts.map +1 -1
- package/dist/components/advanced/blog-editor/BlogEditorContent.d.ts +4 -2
- package/dist/components/advanced/blog-editor/BlogEditorContent.d.ts.map +1 -1
- package/dist/components/advanced/blog-editor/BlogEditorHeader.d.ts +4 -2
- package/dist/components/advanced/blog-editor/BlogEditorHeader.d.ts.map +1 -1
- package/dist/components/advanced/blog-editor/BlogEditorLanguageTabs.d.ts +4 -2
- package/dist/components/advanced/blog-editor/BlogEditorLanguageTabs.d.ts.map +1 -1
- package/dist/components/advanced/blog-editor/BlogEditorMetadata.d.ts +5 -3
- package/dist/components/advanced/blog-editor/BlogEditorMetadata.d.ts.map +1 -1
- package/dist/components/advanced/blog-editor/BlogEditorPreview.d.ts +5 -3
- package/dist/components/advanced/blog-editor/BlogEditorPreview.d.ts.map +1 -1
- package/dist/components/advanced/blog-editor/BlogEditorToolbar.d.ts +4 -2
- package/dist/components/advanced/blog-editor/BlogEditorToolbar.d.ts.map +1 -1
- package/dist/components/advanced/blog-editor/BlogEditorTranslate.d.ts +4 -2
- package/dist/components/advanced/blog-editor/BlogEditorTranslate.d.ts.map +1 -1
- package/dist/components/advanced/blog-editor/types.d.ts +5 -2
- package/dist/components/advanced/blog-editor/types.d.ts.map +1 -1
- package/dist/components/advanced/emotion/EmotionAnalysis.d.ts +3 -1
- package/dist/components/advanced/emotion/EmotionAnalysis.d.ts.map +1 -1
- package/dist/components/advanced/emotion/EmotionButton.d.ts +3 -1
- package/dist/components/advanced/emotion/EmotionButton.d.ts.map +1 -1
- package/dist/components/advanced/emotion/EmotionMeter.d.ts +4 -2
- package/dist/components/advanced/emotion/EmotionMeter.d.ts.map +1 -1
- package/dist/components/advanced/emotion/EmotionSelector.d.ts +3 -1
- package/dist/components/advanced/emotion/EmotionSelector.d.ts.map +1 -1
- package/dist/components/dashboard/ActivityFeed.d.ts +5 -2
- package/dist/components/dashboard/ActivityFeed.d.ts.map +1 -1
- package/dist/components/dashboard/BarChart.d.ts +3 -2
- package/dist/components/dashboard/BarChart.d.ts.map +1 -1
- package/dist/components/dashboard/DashboardGrid.d.ts +13 -3
- package/dist/components/dashboard/DashboardGrid.d.ts.map +1 -1
- package/dist/components/dashboard/DashboardSidebar.d.ts +15 -82
- package/dist/components/dashboard/DashboardSidebar.d.ts.map +1 -1
- package/dist/components/dashboard/DashboardToolbar.d.ts +3 -2
- package/dist/components/dashboard/DashboardToolbar.d.ts.map +1 -1
- package/dist/components/dashboard/EmptyState.d.ts +3 -2
- package/dist/components/dashboard/EmptyState.d.ts.map +1 -1
- package/dist/components/dashboard/MembershipBadge.d.ts +3 -2
- package/dist/components/dashboard/MembershipBadge.d.ts.map +1 -1
- package/dist/components/dashboard/MerchantList.d.ts +3 -2
- package/dist/components/dashboard/MerchantList.d.ts.map +1 -1
- package/dist/components/dashboard/MetricCard.d.ts +3 -2
- package/dist/components/dashboard/MetricCard.d.ts.map +1 -1
- package/dist/components/dashboard/MiniBarChart.d.ts +3 -2
- package/dist/components/dashboard/MiniBarChart.d.ts.map +1 -1
- package/dist/components/dashboard/NotificationCard.d.ts +5 -2
- package/dist/components/dashboard/NotificationCard.d.ts.map +1 -1
- package/dist/components/dashboard/ProfileCard.d.ts +5 -2
- package/dist/components/dashboard/ProfileCard.d.ts.map +1 -1
- package/dist/components/dashboard/ProgressCard.d.ts +6 -3
- package/dist/components/dashboard/ProgressCard.d.ts.map +1 -1
- package/dist/components/dashboard/QuickActionCard.d.ts +22 -27
- package/dist/components/dashboard/QuickActionCard.d.ts.map +1 -1
- package/dist/components/dashboard/RoutingBreakdownCard.d.ts +3 -2
- package/dist/components/dashboard/RoutingBreakdownCard.d.ts.map +1 -1
- package/dist/components/dashboard/SettlementTimeline.d.ts +3 -2
- package/dist/components/dashboard/SettlementTimeline.d.ts.map +1 -1
- package/dist/components/dashboard/StatCard.d.ts +7 -4
- package/dist/components/dashboard/StatCard.d.ts.map +1 -1
- package/dist/components/dashboard/SummaryCard.d.ts +6 -3
- package/dist/components/dashboard/SummaryCard.d.ts.map +1 -1
- package/dist/components/dashboard/TransactionDetailDrawer.d.ts +2 -2
- package/dist/components/dashboard/TransactionDetailDrawer.d.ts.map +1 -1
- package/dist/components/dashboard/TransactionsTable.d.ts +3 -2
- package/dist/components/dashboard/TransactionsTable.d.ts.map +1 -1
- package/dist/components/dashboard/TrendChart.d.ts +3 -2
- package/dist/components/dashboard/TrendChart.d.ts.map +1 -1
- package/dist/components/dashboard/YearlyHeatmap.d.ts +4 -2
- package/dist/components/dashboard/YearlyHeatmap.d.ts.map +1 -1
- package/dist/components/dashboard/kanban/KanbanAddCard.d.ts.map +1 -1
- package/dist/components/dashboard/kanban/KanbanAddColumn.d.ts.map +1 -1
- package/dist/components/dashboard/kanban/KanbanBoard.d.ts.map +1 -1
- package/dist/components/dashboard/kanban/KanbanCard.d.ts.map +1 -1
- package/dist/components/dashboard/kanban/KanbanColumn.d.ts.map +1 -1
- package/dist/components/dashboard/kanban/KanbanColumnHeader.d.ts.map +1 -1
- package/dist/components/dashboard/kanban/KanbanDropIndicator.d.ts.map +1 -1
- package/dist/components/dashboard/kanban/index.d.ts +1 -1
- package/dist/components/dashboard/kanban/types.d.ts +24 -12
- package/dist/components/dashboard/kanban/types.d.ts.map +1 -1
- package/dist/components/scrollbar/scrollbar.d.ts +2 -1
- package/dist/components/scrollbar/scrollbar.d.ts.map +1 -1
- package/dist/context/MotionConfigContext.d.ts +41 -0
- package/dist/context/MotionConfigContext.d.ts.map +1 -0
- package/dist/data.d.mts +55 -23
- package/dist/data.d.ts +45 -3
- package/dist/data.d.ts.map +1 -1
- package/dist/data.mjs +2 -2
- package/dist/data.mjs.map +1 -1
- package/dist/feedback.d.mts +6 -293
- package/dist/feedback.d.ts +7 -5
- package/dist/feedback.d.ts.map +1 -1
- package/dist/feedback.mjs +1 -1
- package/dist/form.d.mts +99 -114
- package/dist/form.mjs +8 -3
- package/dist/form.mjs.map +1 -1
- package/dist/hooks/index.d.ts +6 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/useAnimatedEntrance.d.ts +24 -0
- package/dist/hooks/useAnimatedEntrance.d.ts.map +1 -0
- package/dist/hooks/useBreakpoint.d.ts +22 -0
- package/dist/hooks/useBreakpoint.d.ts.map +1 -0
- package/dist/hooks/useDotEnv.d.ts +12 -0
- package/dist/hooks/useDotEnv.d.ts.map +1 -0
- package/dist/hooks/useDotMap.d.ts +38 -0
- package/dist/hooks/useDotMap.d.ts.map +1 -0
- package/dist/iconsax-extended.mjs +2 -2
- package/dist/iconsax-extended.mjs.map +1 -1
- package/dist/iconsax.mjs +2 -2
- package/dist/iconsax.mjs.map +1 -1
- package/dist/index.d.mts +358 -127
- package/dist/index.d.ts +74 -64
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +15 -15
- package/dist/index.mjs.map +1 -1
- package/dist/interactive/kanban.d.ts +12 -0
- package/dist/interactive/kanban.d.ts.map +1 -0
- package/dist/interactive-kanban.d.mts +378 -0
- package/dist/interactive-kanban.mjs +3 -0
- package/dist/interactive-kanban.mjs.map +1 -0
- package/dist/interactive.d.mts +193 -197
- package/dist/interactive.d.ts +7 -5
- package/dist/interactive.d.ts.map +1 -1
- package/dist/interactive.mjs +1 -1
- package/dist/interactive.mjs.map +1 -1
- package/dist/landing/LandingAbout.d.ts +2 -2
- package/dist/landing/LandingAbout.d.ts.map +1 -1
- package/dist/landing/LandingCTA.d.ts +2 -2
- package/dist/landing/LandingCTA.d.ts.map +1 -1
- package/dist/landing/LandingContact.d.ts +2 -2
- package/dist/landing/LandingContact.d.ts.map +1 -1
- package/dist/landing/LandingExperience.d.ts +1 -1
- package/dist/landing/LandingExperience.d.ts.map +1 -1
- package/dist/landing/LandingFeatures.d.ts +1 -1
- package/dist/landing/LandingFeatures.d.ts.map +1 -1
- package/dist/landing/LandingHero.d.ts +2 -2
- package/dist/landing/LandingHero.d.ts.map +1 -1
- package/dist/landing/LandingLogoCloud.d.ts +2 -2
- package/dist/landing/LandingLogoCloud.d.ts.map +1 -1
- package/dist/landing/LandingMetrics.d.ts +1 -1
- package/dist/landing/LandingMetrics.d.ts.map +1 -1
- package/dist/landing/LandingProjects.d.ts +1 -1
- package/dist/landing/LandingProjects.d.ts.map +1 -1
- package/dist/landing/LandingShowcase.d.ts +2 -2
- package/dist/landing/LandingShowcase.d.ts.map +1 -1
- package/dist/landing/LandingSkills.d.ts +1 -1
- package/dist/landing/LandingSkills.d.ts.map +1 -1
- package/dist/landing/LandingStats.d.ts +1 -1
- package/dist/landing/LandingStats.d.ts.map +1 -1
- package/dist/landing/LandingTestimonials.d.ts +1 -1
- package/dist/landing/LandingTestimonials.d.ts.map +1 -1
- package/dist/landing/types.d.ts +42 -30
- package/dist/landing/types.d.ts.map +1 -1
- package/dist/landing.d.mts +47 -37
- package/dist/landing.mjs +4 -20
- package/dist/landing.mjs.map +1 -1
- package/dist/lib/Slot.d.ts.map +1 -1
- package/dist/lib/icon-providers.d.ts +17 -3
- package/dist/lib/icon-providers.d.ts.map +1 -1
- package/dist/lib/styles/animation.d.ts +35 -0
- package/dist/lib/styles/animation.d.ts.map +1 -0
- package/dist/lib/styles/disabled.d.ts +15 -0
- package/dist/lib/styles/disabled.d.ts.map +1 -0
- package/dist/lib/styles/focus.d.ts +34 -0
- package/dist/lib/styles/focus.d.ts.map +1 -0
- package/dist/lib/styles/glass.d.ts +18 -0
- package/dist/lib/styles/glass.d.ts.map +1 -0
- package/dist/lib/styles/hover.d.ts +9 -0
- package/dist/lib/styles/hover.d.ts.map +1 -0
- package/dist/lib/styles/index.d.ts +6 -0
- package/dist/lib/styles/index.d.ts.map +1 -1
- package/dist/lib/styles/transition.d.ts +42 -0
- package/dist/lib/styles/transition.d.ts.map +1 -0
- package/dist/lib/types/common.d.ts +3 -3
- package/dist/lib/types/common.d.ts.map +1 -1
- package/dist/native/Box.d.ts +11 -0
- package/dist/native/Box.d.ts.map +1 -0
- package/dist/native/Pressable.d.ts +10 -0
- package/dist/native/Pressable.d.ts.map +1 -0
- package/dist/native/Text.d.ts +11 -0
- package/dist/native/Text.d.ts.map +1 -0
- package/dist/native/index.d.ts +9 -0
- package/dist/native/index.d.ts.map +1 -0
- package/dist/native/useDotMap.d.ts +51 -0
- package/dist/native/useDotMap.d.ts.map +1 -0
- package/dist/native.mjs +2 -0
- package/dist/native.mjs.map +1 -0
- package/dist/navigation.d.mts +48 -21
- package/dist/navigation.d.ts +10 -8
- package/dist/navigation.d.ts.map +1 -1
- package/dist/navigation.mjs +1 -1
- package/dist/navigation.mjs.map +1 -1
- package/dist/overlay.d.mts +84 -37
- package/dist/overlay.mjs +2 -2
- package/dist/overlay.mjs.map +1 -1
- package/dist/sdui/SDUIRenderer.d.ts.map +1 -1
- package/dist/sdui/core.d.ts +50 -0
- package/dist/sdui/core.d.ts.map +1 -0
- package/dist/sdui/index.d.ts +3 -1
- package/dist/sdui/index.d.ts.map +1 -1
- package/dist/sdui/registry.d.ts.map +1 -1
- package/dist/sdui/types.d.ts +38 -0
- package/dist/sdui/types.d.ts.map +1 -1
- package/dist/sdui.d.mts +89 -1
- package/dist/sdui.mjs +2 -2
- package/dist/sdui.mjs.map +1 -1
- package/package.json +39 -15
- package/src/styles/component-vars.css +503 -69
- package/src/styles/landing.css +12 -12
- package/src/styles/prose.css +284 -0
- package/src/styles/recommended-theme.css +123 -141
- package/src/styles/utilities.css +3 -3
- package/dist/chunk-5DPW7SVD.mjs +0 -4
- package/dist/chunk-5DPW7SVD.mjs.map +0 -1
- package/dist/chunk-5L5HIPKA.mjs +0 -3
- package/dist/chunk-5L5HIPKA.mjs.map +0 -1
- package/dist/chunk-CNW22G24.mjs +0 -13
- package/dist/chunk-CNW22G24.mjs.map +0 -1
- package/dist/chunk-CW66UBQG.mjs +0 -3
- package/dist/chunk-CW66UBQG.mjs.map +0 -1
- package/dist/chunk-EPY3432E.mjs +0 -3
- package/dist/chunk-EPY3432E.mjs.map +0 -1
- package/dist/chunk-F2M4YDDQ.mjs +0 -3
- package/dist/chunk-F2M4YDDQ.mjs.map +0 -1
- package/dist/chunk-FHMFDCX2.mjs +0 -3
- package/dist/chunk-FHMFDCX2.mjs.map +0 -1
- package/dist/chunk-HBIUCLFL.mjs +0 -3
- package/dist/chunk-HBIUCLFL.mjs.map +0 -1
- package/dist/chunk-HEBXAFRY.mjs +0 -3
- package/dist/chunk-HEBXAFRY.mjs.map +0 -1
- package/dist/chunk-IG47LMOD.mjs +0 -3
- package/dist/chunk-IG47LMOD.mjs.map +0 -1
- package/dist/chunk-J47ZEXEL.mjs +0 -3
- package/dist/chunk-J47ZEXEL.mjs.map +0 -1
- package/dist/chunk-K2FOFIST.mjs +0 -3
- package/dist/chunk-K2FOFIST.mjs.map +0 -1
- package/dist/chunk-LL6QPRD7.mjs +0 -3
- package/dist/chunk-LL6QPRD7.mjs.map +0 -1
- package/dist/chunk-NMJLOK6M.mjs +0 -3
- package/dist/chunk-NMJLOK6M.mjs.map +0 -1
- package/dist/chunk-O24K56OS.mjs +0 -3
- package/dist/chunk-O24K56OS.mjs.map +0 -1
- package/dist/chunk-OIWG3IJ7.mjs +0 -3
- package/dist/chunk-OIWG3IJ7.mjs.map +0 -1
- package/dist/chunk-OLLU7ZFH.mjs +0 -3
- package/dist/chunk-OLLU7ZFH.mjs.map +0 -1
- package/dist/chunk-Q76JW7X5.mjs +0 -73
- package/dist/chunk-Q76JW7X5.mjs.map +0 -1
- package/dist/chunk-QRM66RQG.mjs +0 -3
- package/dist/chunk-QRM66RQG.mjs.map +0 -1
- package/dist/chunk-QRRP7TGF.mjs +0 -13
- package/dist/chunk-QRRP7TGF.mjs.map +0 -1
- package/dist/chunk-SD6XGDAC.mjs +0 -3
- package/dist/chunk-SD6XGDAC.mjs.map +0 -1
- package/dist/chunk-SDFVGFXT.mjs +0 -3
- package/dist/chunk-SDFVGFXT.mjs.map +0 -1
- package/dist/chunk-SMLDNOV3.mjs +0 -8
- package/dist/chunk-SMLDNOV3.mjs.map +0 -1
- package/dist/chunk-TAP6MYDW.mjs +0 -3
- package/dist/chunk-TAP6MYDW.mjs.map +0 -1
- package/dist/chunk-TBZ645BI.mjs +0 -3
- package/dist/chunk-TBZ645BI.mjs.map +0 -1
- package/dist/chunk-V2DNYJR6.mjs +0 -3
- package/dist/chunk-V2DNYJR6.mjs.map +0 -1
- package/dist/chunk-VBABZXL7.mjs +0 -3
- package/dist/chunk-VBABZXL7.mjs.map +0 -1
- package/dist/chunk-WYBSHTGY.mjs +0 -3
- package/dist/chunk-WYBSHTGY.mjs.map +0 -1
- package/dist/chunk-ZQUMJQYV.mjs +0 -3
- package/dist/chunk-ZQUMJQYV.mjs.map +0 -1
- package/dist/chunk-ZY23NOT4.mjs +0 -3
- package/dist/chunk-ZY23NOT4.mjs.map +0 -1
- package/dist/components/EmptyState.d.ts +0 -62
- package/dist/components/EmptyState.d.ts.map +0 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025-present HUA Labs
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# @hua-labs/ui
|
|
2
2
|
|
|
3
|
-
Accessible, TypeScript-first component library for React applications. Provides 70+ production-ready components with modular entry points for optimal bundle size, dark mode support, and
|
|
3
|
+
Accessible, TypeScript-first component library for React applications. Provides 70+ production-ready components with modular entry points for optimal bundle size, dark mode support, and cross-platform styling via the dot style engine.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@hua-labs/ui)
|
|
6
6
|
[](https://www.npmjs.com/package/@hua-labs/ui)
|
|
7
|
-
[](https://github.com/HUA-Labs/
|
|
7
|
+
[](https://github.com/HUA-Labs/hua-packages/blob/main/LICENSE)
|
|
8
8
|
[](https://www.typescriptlang.org/)
|
|
9
9
|
[](https://reactjs.org/)
|
|
10
10
|
|
|
@@ -14,7 +14,7 @@ Accessible, TypeScript-first component library for React applications. Provides
|
|
|
14
14
|
- **Modular entry points — Import only what you need for optimal bundle size**
|
|
15
15
|
- **Accessible — ARIA attributes, keyboard navigation, WCAG compliant**
|
|
16
16
|
- **Dark mode — Built-in dark mode support**
|
|
17
|
-
- **
|
|
17
|
+
- **dot style engine — Cross-platform styling (Web CSSProperties / React Native StyleSheet) via dot prop**
|
|
18
18
|
- **Tree-shakeable — Side-effect free (except CSS)**
|
|
19
19
|
|
|
20
20
|
## Installation
|
|
@@ -23,13 +23,13 @@ Accessible, TypeScript-first component library for React applications. Provides
|
|
|
23
23
|
pnpm add @hua-labs/ui
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
> Peer dependencies: @dnd-kit/core ^6.3.1, @dnd-kit/sortable ^10.0.0, @dnd-kit/utilities ^3.2.2, @hua-labs/motion-core >=2.
|
|
26
|
+
> Peer dependencies: @dnd-kit/core ^6.3.1, @dnd-kit/sortable ^10.0.0, @dnd-kit/utilities ^3.2.2, @hua-labs/motion-core >=2.4.0, react >=19.0.0, react-dom >=19.0.0, react-native >=0.73.0
|
|
27
27
|
|
|
28
28
|
## Quick Start
|
|
29
29
|
|
|
30
30
|
```tsx
|
|
31
|
-
import { Button, Card, CardHeader, CardTitle, CardContent } from
|
|
32
|
-
import { Input, Select } from
|
|
31
|
+
import { Button, Card, CardHeader, CardTitle, CardContent } from "@hua-labs/ui";
|
|
32
|
+
import { Input, Select } from "@hua-labs/ui/form";
|
|
33
33
|
|
|
34
34
|
function App() {
|
|
35
35
|
return (
|
|
@@ -44,47 +44,95 @@ function App() {
|
|
|
44
44
|
</Card>
|
|
45
45
|
);
|
|
46
46
|
}
|
|
47
|
-
|
|
48
47
|
```
|
|
49
48
|
|
|
50
49
|
## API
|
|
51
50
|
|
|
52
|
-
| Export
|
|
53
|
-
|
|
54
|
-
| `
|
|
55
|
-
| `
|
|
56
|
-
| `
|
|
57
|
-
| `
|
|
58
|
-
| `
|
|
59
|
-
| `
|
|
60
|
-
| `
|
|
61
|
-
| `
|
|
62
|
-
| `
|
|
63
|
-
| `
|
|
64
|
-
| `
|
|
65
|
-
| `
|
|
66
|
-
| `
|
|
67
|
-
| `
|
|
68
|
-
| `
|
|
69
|
-
| `
|
|
70
|
-
| `
|
|
71
|
-
| `
|
|
72
|
-
| `
|
|
73
|
-
| `
|
|
74
|
-
| `
|
|
75
|
-
| `
|
|
76
|
-
| `
|
|
77
|
-
| `
|
|
78
|
-
| `
|
|
79
|
-
| `
|
|
80
|
-
| `
|
|
81
|
-
| `
|
|
82
|
-
| `
|
|
83
|
-
| `
|
|
84
|
-
| `
|
|
85
|
-
| `
|
|
86
|
-
| `
|
|
87
|
-
|
|
51
|
+
| Export | Type | Description |
|
|
52
|
+
| --------------------------- | --------- | ------------------------------------------------------------------------------------------ |
|
|
53
|
+
| `Box` | component | Base block primitive (renders as <div> on web, View on native via .native.tsx) |
|
|
54
|
+
| `Text` | component | Base text primitive (renders as <span> on web, Text on native via .native.tsx) |
|
|
55
|
+
| `Pressable` | component | Interactive primitive with hover/focus dot styles (renders as <button> on web) |
|
|
56
|
+
| `Button` | component | Primary action button with variants, sizes, and loading state |
|
|
57
|
+
| `Action` | component | Compact icon action button |
|
|
58
|
+
| `Input` | component | Text input with validation, prefix/suffix, and error states |
|
|
59
|
+
| `NumberInput` | component | Numeric input with increment/decrement controls |
|
|
60
|
+
| `Link` | component | Styled anchor with router integration |
|
|
61
|
+
| `Icon` | component | Universal icon component (Lucide, Phosphor, custom) |
|
|
62
|
+
| `Avatar` | component | User avatar with image fallback |
|
|
63
|
+
| `Modal` | component | Dialog overlay with backdrop and focus trap |
|
|
64
|
+
| `Container` | component | Responsive max-width container |
|
|
65
|
+
| `Section` | component | Page section wrapper with optional header config (title, description, action) |
|
|
66
|
+
| `Grid` | component | CSS Grid layout wrapper |
|
|
67
|
+
| `Stack` | component | Flex stack layout (vertical/horizontal) |
|
|
68
|
+
| `Divider` | component | Visual separator (horizontal/vertical) |
|
|
69
|
+
| `Card` | component | Content container with header, body, footer slots |
|
|
70
|
+
| `Panel` | component | Collapsible content panel |
|
|
71
|
+
| `ActionToolbar` | component | Horizontal toolbar that renders a list of icon action buttons |
|
|
72
|
+
| `ComponentLayout` | component | Dev/docs layout that renders a component with labelled preview and code slots |
|
|
73
|
+
| `Prose` | component | Typography wrapper that applies readable prose styles to raw HTML/markdown content |
|
|
74
|
+
| `Badge` | component | Status badge with color variants |
|
|
75
|
+
| `Progress` | component | Progress bar with percentage |
|
|
76
|
+
| `Skeleton` | component | Content placeholder during loading |
|
|
77
|
+
| `Alert` | component | Inline alert with success/warning/error/info variants |
|
|
78
|
+
| `ToastProvider` | component | Toast notification provider |
|
|
79
|
+
| `useToast` | hook | Imperative toast API — toast.success(), toast.error() |
|
|
80
|
+
| `LoadingSpinner` | component | Animated loading indicator |
|
|
81
|
+
| `Tooltip` | component | Hover tooltip with positioning |
|
|
82
|
+
| `Label` | component | Form label with required indicator |
|
|
83
|
+
| `Switch` | component | Toggle switch for boolean values |
|
|
84
|
+
| `Toggle` | component | Pressable toggle button |
|
|
85
|
+
| `ScrollArea` | component | Custom scrollbar container |
|
|
86
|
+
| `ScrollToTop` | component | Scroll-to-top floating button |
|
|
87
|
+
| `ThemeProvider` | component | Dark/light theme context provider |
|
|
88
|
+
| `ThemeToggle` | component | Theme switch button |
|
|
89
|
+
| `useTheme` | hook | Theme context hook — { theme, setTheme } |
|
|
90
|
+
| `iconNames` | variable | Complete list of all icon name strings available in the project |
|
|
91
|
+
| `iconProviderMapping` | variable | Map from icon name to its provider (lucide, phosphor, custom, etc.) |
|
|
92
|
+
| `isValidIconName` | function | Type-guard that checks whether a string is a valid icon name |
|
|
93
|
+
| `getIconNameForProvider` | function | Resolve the provider-specific icon identifier for a given icon name |
|
|
94
|
+
| `ICON_ALIASES` | variable | Map of alias strings to canonical icon names |
|
|
95
|
+
| `resolveIconAlias` | function | Resolve an alias to its canonical icon name, returning the input unchanged if not an alias |
|
|
96
|
+
| `getIconAliases` | function | Return the list of all registered icon alias strings |
|
|
97
|
+
| `IconProvider` | component | Icon configuration context provider |
|
|
98
|
+
| `registerLucideResolver` | function | Register the Lucide icon resolver so the Icon component can render Lucide icons |
|
|
99
|
+
| `merge` | function | Merge multiple class strings, filtering falsy values |
|
|
100
|
+
| `mergeIf` | function | Conditionally append a class string based on a boolean flag |
|
|
101
|
+
| `mergeMap` | function | Map over an object of conditional classes and merge the truthy ones |
|
|
102
|
+
| `cn` | function | Class name merging utility (clsx + tailwind-merge). Legacy — prefer dot prop for new code |
|
|
103
|
+
| `formatRelativeTime` | function | Format a Date as a human-readable relative time string (e.g. '3 minutes ago') |
|
|
104
|
+
| `Slot` | component | Polymorphic slot for asChild pattern |
|
|
105
|
+
| `composeRefs` | function | Compose multiple React refs into a single callback ref |
|
|
106
|
+
| `mergeProps` | function | Merge two sets of React props, combining event handlers and class names |
|
|
107
|
+
| `createColorStyles` | function | Generate Tailwind color class strings from a ColorStyleConfig |
|
|
108
|
+
| `useColorStyles` | hook | Hook that returns memoised color class strings from a ColorStyleConfig |
|
|
109
|
+
| `createVariantStyles` | function | Build a variant→class-string map for a component (e.g. solid, outline, ghost) |
|
|
110
|
+
| `createSizeStyles` | function | Build a size→class-string map (xs, sm, md, lg, xl) |
|
|
111
|
+
| `createRoundedStyles` | function | Build a rounded→class-string map (none, sm, md, lg, full) |
|
|
112
|
+
| `createShadowStyles` | function | Build a shadow level→class-string map |
|
|
113
|
+
| `createHoverStyles` | function | Build hover effect→class-string map (scale, brightness, opacity, etc.) |
|
|
114
|
+
| `HUA_SPRING_EASING` | variable | CSS cubic-bezier string for the HUA brand spring easing |
|
|
115
|
+
| `withDarkMode` | function | Wrap a class string with a dark: variant equivalent |
|
|
116
|
+
| `createGradient` | function | Generate a Tailwind gradient class string from from/via/to color stops |
|
|
117
|
+
| `withOpacity` | function | Append a Tailwind opacity modifier to a color class (e.g. bg-primary/50) |
|
|
118
|
+
| `isTextWhite` | function | Return true if a given color variant requires white text for contrast |
|
|
119
|
+
| `isGradientVariant` | function | Type-guard that checks whether a color value is a gradient variant string |
|
|
120
|
+
| `responsive` | function | Apply breakpoint prefixes to a class string (sm:, md:, lg:, etc.) |
|
|
121
|
+
| `conditionalClass` | function | Return a class string only when a condition is true, otherwise empty string |
|
|
122
|
+
| `useMicroMotion` | hook | Hook that returns CSS class strings for micro-interaction motion states |
|
|
123
|
+
| `getMicroMotionClasses` | function | Pure function that resolves micro-motion class strings from a config without a hook |
|
|
124
|
+
| `EASING_FUNCTIONS` | variable | Map of named CSS cubic-bezier easing strings used by micro motion |
|
|
125
|
+
| `DURATIONS` | variable | Map of semantic duration tokens (fast, normal, slow, etc.) in milliseconds |
|
|
126
|
+
| `COMPONENT_MOTION_DEFAULTS` | variable | Default micro-motion configs keyed by component name |
|
|
127
|
+
| `MotionConfigProvider` | component | Context provider for per-component motion configuration overrides |
|
|
128
|
+
| `useMotionConfig` | hook | Read the current MotionConfigContext value |
|
|
129
|
+
| `useComponentMotion` | hook | Resolve the merged motion config for a specific component name |
|
|
130
|
+
| `useAnimatedEntrance` | hook | Trigger a CSS class-based entrance animation when an element enters the viewport |
|
|
131
|
+
| `useBreakpoint` | hook | Track the current responsive breakpoint (sm / md / lg / xl / 2xl) |
|
|
132
|
+
| `useDotEnv` | hook | Read dot-engine style tokens from a CSS custom-property environment |
|
|
133
|
+
| `useDotMap` | hook | Resolve a DotStyleMap (state→dot-string) to live style objects based on current state |
|
|
134
|
+
| `mergeStyles` | function | Merge two CSSProperties / style objects, with the second taking precedence |
|
|
135
|
+
| `resolveDot` | function | Resolve a dot-style string to a CSSProperties object at runtime |
|
|
88
136
|
|
|
89
137
|
## Related Packages
|
|
90
138
|
|
|
@@ -1,6 +1,37 @@
|
|
|
1
1
|
import { I as IconName } from './icons-DcOBy9Hf.mjs';
|
|
2
2
|
import React$1 from 'react';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Icon Provider System
|
|
6
|
+
*
|
|
7
|
+
* 각 프로바이더별 로딩 전략 / Loading strategies per provider:
|
|
8
|
+
*
|
|
9
|
+
* 1. Phosphor Icons (https://phosphoricons.com) - default
|
|
10
|
+
* - Official package: @phosphor-icons/react (MIT License)
|
|
11
|
+
* - icons.ts에서 정적 subpath import (SSR-safe /dist/ssr)
|
|
12
|
+
* - PROJECT_ICONS 매핑으로 통합 이름 지원
|
|
13
|
+
* - 정적 맵에 없는 아이콘은 "?" fallback UI 표시
|
|
14
|
+
*
|
|
15
|
+
* 2. Iconsax Icons (https://iconsax.io) - separate entry
|
|
16
|
+
* - '@hua-labs/ui/iconsax'에서 import 시 자동 등록
|
|
17
|
+
* - 코어 번들에 포함되지 않음 / Not in core bundle
|
|
18
|
+
* - registerIconsaxResolver()로 lazy 연결
|
|
19
|
+
*
|
|
20
|
+
* 3. Lucide Icons (https://lucide.dev) - separate entry
|
|
21
|
+
* - '@hua-labs/ui/lucide'에서 import 시 자동 등록
|
|
22
|
+
* - 코어 번들에 포함되지 않음 / Not in core bundle
|
|
23
|
+
* - registerLucideResolver()로 lazy 연결
|
|
24
|
+
* Note: 동적 barrel import (import('@phosphor-icons/react'))는 Turbopack에서
|
|
25
|
+
* 전체 라이브러리(4.6MB)를 번들하므로 사용 금지.
|
|
26
|
+
*/
|
|
27
|
+
interface IconResolverRegistry {
|
|
28
|
+
lucide: ((name: string) => any) | null;
|
|
29
|
+
iconsax: ((name: string, variant?: string) => any) | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Register lucide resolver (called from app-level setup).
|
|
33
|
+
*/
|
|
34
|
+
declare function registerLucideResolver(resolver: IconResolverRegistry['lucide']): void;
|
|
4
35
|
/**
|
|
5
36
|
* Project-specific icon list
|
|
6
37
|
* These are the icons actually used in SumUp project
|
|
@@ -640,9 +671,10 @@ declare function getIconNameForProvider(iconName: string, provider: 'lucide' | '
|
|
|
640
671
|
* @property {Array<Object>} [breadcrumbItems] - Breadcrumb 항목들 / Breadcrumb items
|
|
641
672
|
* @property {string} breadcrumbItems[].label - Breadcrumb 라벨 / Breadcrumb label
|
|
642
673
|
* @property {string} [breadcrumbItems[].href] - Breadcrumb 링크 / Breadcrumb link
|
|
643
|
-
* @
|
|
674
|
+
* @property {string} [dot] - dot 유틸리티 스트링 / dot utility string
|
|
675
|
+
* @property {React.CSSProperties} [style] - 인라인 스타일 / Inline styles
|
|
644
676
|
*/
|
|
645
|
-
interface ComponentLayoutProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
677
|
+
interface ComponentLayoutProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "className"> {
|
|
646
678
|
title: string;
|
|
647
679
|
description: string;
|
|
648
680
|
children: React$1.ReactNode;
|
|
@@ -658,6 +690,8 @@ interface ComponentLayoutProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
658
690
|
label: string;
|
|
659
691
|
href?: string;
|
|
660
692
|
}>;
|
|
693
|
+
dot?: string;
|
|
694
|
+
style?: React$1.CSSProperties;
|
|
661
695
|
}
|
|
662
696
|
/**
|
|
663
697
|
* ComponentLayout 컴포넌트 / ComponentLayout component
|
|
@@ -695,4 +729,4 @@ interface ComponentLayoutProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
695
729
|
*/
|
|
696
730
|
declare const ComponentLayout: React$1.ForwardRefExoticComponent<ComponentLayoutProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
697
731
|
|
|
698
|
-
export { type AllIconName as A, ComponentLayout as C, type ProjectIconName as P, iconProviderMapping as a, isValidIconName as b, getIconNameForProvider as g, iconNames as i };
|
|
732
|
+
export { type AllIconName as A, ComponentLayout as C, type ProjectIconName as P, iconProviderMapping as a, isValidIconName as b, getIconNameForProvider as g, iconNames as i, registerLucideResolver as r };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { I as IconName } from './icons-DcOBy9Hf.mjs';
|
|
3
|
+
|
|
4
|
+
interface SidebarNavItem {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
href?: string;
|
|
8
|
+
icon?: IconName | React.ReactNode;
|
|
9
|
+
badge?: React.ReactNode;
|
|
10
|
+
active?: boolean;
|
|
11
|
+
onClick?: () => void;
|
|
12
|
+
}
|
|
13
|
+
interface SidebarSection {
|
|
14
|
+
id: string;
|
|
15
|
+
label?: string;
|
|
16
|
+
items: SidebarNavItem[];
|
|
17
|
+
/** Default collapsed state for this section */
|
|
18
|
+
defaultCollapsed?: boolean;
|
|
19
|
+
}
|
|
20
|
+
interface DashboardSidebarProps extends Omit<React.HTMLAttributes<HTMLElement>, "className"> {
|
|
21
|
+
logo?: React.ReactNode;
|
|
22
|
+
productSwitcher?: React.ReactNode;
|
|
23
|
+
sections: SidebarSection[];
|
|
24
|
+
footerActions?: React.ReactNode;
|
|
25
|
+
isCollapsed?: boolean;
|
|
26
|
+
defaultCollapsed?: boolean;
|
|
27
|
+
onToggleCollapsed?: (collapsed: boolean) => void;
|
|
28
|
+
collapsedWidth?: number;
|
|
29
|
+
expandedWidth?: number;
|
|
30
|
+
mobileBreakpoint?: number;
|
|
31
|
+
overlayBackground?: string;
|
|
32
|
+
variant?: "default" | "transparent";
|
|
33
|
+
/** @deprecated Edge handle replaces toggle button */
|
|
34
|
+
hideToggle?: boolean;
|
|
35
|
+
itemDot?: string;
|
|
36
|
+
activeDot?: string;
|
|
37
|
+
/** @deprecated Use itemDot instead */
|
|
38
|
+
itemClassName?: string;
|
|
39
|
+
/** @deprecated Use activeDot instead */
|
|
40
|
+
activeClassName?: string;
|
|
41
|
+
isMobileOpen?: boolean;
|
|
42
|
+
onMobileOpenChange?: (open: boolean) => void;
|
|
43
|
+
hideMobileToggle?: boolean;
|
|
44
|
+
/** Pinned item IDs — shown when sidebar is collapsed */
|
|
45
|
+
pinnedItems?: string[];
|
|
46
|
+
/** Default pinned items (used when pinnedItems is not controlled) */
|
|
47
|
+
defaultPinnedItems?: string[];
|
|
48
|
+
/** Called when pinned items change */
|
|
49
|
+
onPinnedChange?: (pinnedIds: string[]) => void;
|
|
50
|
+
dot?: string;
|
|
51
|
+
}
|
|
52
|
+
declare const DashboardSidebar: React.ForwardRefExoticComponent<DashboardSidebarProps & React.RefAttributes<HTMLElement>>;
|
|
53
|
+
|
|
54
|
+
export { DashboardSidebar as D, type SidebarNavItem as S, type DashboardSidebarProps as a, type SidebarSection as b };
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { I as IconName } from './icons-DcOBy9Hf.mjs';
|
|
3
|
+
|
|
4
|
+
type ToolbarVariant = "plain" | "cards";
|
|
5
|
+
/**
|
|
6
|
+
* 툴바 액션 인터페이스 / ToolbarAction interface
|
|
7
|
+
* @typedef {Object} ToolbarAction
|
|
8
|
+
* @property {string} label - 액션 라벨 / Action label
|
|
9
|
+
* @property {() => void} [onClick] - 클릭 핸들러 / Click handler
|
|
10
|
+
* @property {string} [href] - 링크 URL / Link URL
|
|
11
|
+
* @property {IconName | React.ReactNode} [icon] - 아이콘 / Icon
|
|
12
|
+
* @property {"primary" | "secondary" | "ghost"} [appearance="secondary"] - 액션 스타일 / Action style
|
|
13
|
+
* @property {boolean} [loading] - 로딩 상태 / Loading state
|
|
14
|
+
*/
|
|
15
|
+
interface ToolbarAction {
|
|
16
|
+
label: string;
|
|
17
|
+
onClick?: () => void;
|
|
18
|
+
href?: string;
|
|
19
|
+
icon?: IconName | React.ReactNode;
|
|
20
|
+
appearance?: "primary" | "secondary" | "ghost";
|
|
21
|
+
loading?: boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* 날짜 프리셋 인터페이스 / DatePreset interface
|
|
25
|
+
* @typedef {Object} DatePreset
|
|
26
|
+
* @property {string} label - 프리셋 라벨 / Preset label
|
|
27
|
+
* @property {string} value - 프리셋 값 / Preset value
|
|
28
|
+
*/
|
|
29
|
+
interface DatePreset {
|
|
30
|
+
label: string;
|
|
31
|
+
value: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* 날짜 범위 설정 인터페이스 / DateRangeConfig interface
|
|
35
|
+
* @typedef {Object} DateRangeConfig
|
|
36
|
+
* @property {{ from: Date; to: Date } | null} value - 날짜 범위 값 / Date range value
|
|
37
|
+
* @property {DatePreset[]} [presets] - 날짜 프리셋 배열 / Date preset array
|
|
38
|
+
* @property {(preset: DatePreset) => void} [onSelectPreset] - 프리셋 선택 핸들러 / Preset selection handler
|
|
39
|
+
* @property {() => void} [onCustomRange] - 커스텀 범위 선택 핸들러 / Custom range selection handler
|
|
40
|
+
* @property {string} [display] - 표시 텍스트 / Display text
|
|
41
|
+
*/
|
|
42
|
+
interface DateRangeConfig {
|
|
43
|
+
value: {
|
|
44
|
+
from: Date;
|
|
45
|
+
to: Date;
|
|
46
|
+
} | null;
|
|
47
|
+
presets?: DatePreset[];
|
|
48
|
+
onSelectPreset?: (preset: DatePreset) => void;
|
|
49
|
+
onCustomRange?: () => void;
|
|
50
|
+
display?: string;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* DashboardToolbar 컴포넌트의 props / DashboardToolbar component props
|
|
54
|
+
* @typedef {Object} DashboardToolbarProps
|
|
55
|
+
* @property {React.ReactNode} [title] - 툴바 제목 / Toolbar title
|
|
56
|
+
* @property {React.ReactNode} [description] - 툴바 설명 / Toolbar description
|
|
57
|
+
* @property {React.ReactNode} [meta] - 메타 정보 / Meta information
|
|
58
|
+
* @property {"plain" | "cards"} [variant="cards"] - 툴바 스타일 변형 / Toolbar style variant
|
|
59
|
+
* @property {DateRangeConfig} [dateRange] - 날짜 범위 설정 / Date range configuration
|
|
60
|
+
* @property {React.ReactNode} [filters] - 필터 컴포넌트 / Filter component
|
|
61
|
+
* @property {ToolbarAction[]} [actions] - 액션 버튼 배열 / Action buttons array
|
|
62
|
+
* @property {() => void} [onRefresh] - 새로고침 핸들러 / Refresh handler
|
|
63
|
+
* @property {string} [lastUpdated] - 마지막 업데이트 시간 / Last updated time
|
|
64
|
+
* @property {string} [dot] - dot 유틸리티 스트링 / dot utility string
|
|
65
|
+
*/
|
|
66
|
+
interface DashboardToolbarProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title" | "className"> {
|
|
67
|
+
title?: React.ReactNode;
|
|
68
|
+
description?: React.ReactNode;
|
|
69
|
+
meta?: React.ReactNode;
|
|
70
|
+
variant?: ToolbarVariant;
|
|
71
|
+
dateRange?: DateRangeConfig;
|
|
72
|
+
filters?: React.ReactNode;
|
|
73
|
+
actions?: ToolbarAction[];
|
|
74
|
+
onRefresh?: () => void;
|
|
75
|
+
lastUpdated?: string;
|
|
76
|
+
dot?: string;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* DashboardToolbar 컴포넌트
|
|
80
|
+
*
|
|
81
|
+
* 대시보드 상단 툴바 컴포넌트입니다.
|
|
82
|
+
* 제목, 설명, 필터, 날짜 범위 선택, 액션 버튼 등을 포함할 수 있습니다.
|
|
83
|
+
*
|
|
84
|
+
* Top toolbar component for dashboards.
|
|
85
|
+
* Can include title, description, filters, date range selection, and action buttons.
|
|
86
|
+
*
|
|
87
|
+
* @component
|
|
88
|
+
* @example
|
|
89
|
+
* // 기본 사용 / Basic usage
|
|
90
|
+
* <DashboardToolbar
|
|
91
|
+
* title="거래 대시보드"
|
|
92
|
+
* description="전체 거래 현황을 확인하세요"
|
|
93
|
+
* actions={[
|
|
94
|
+
* { label: "내보내기", icon: "download", onClick: handleExport },
|
|
95
|
+
* { label: "필터", icon: "funnel", onClick: handleFilter }
|
|
96
|
+
* ]}
|
|
97
|
+
* onRefresh={handleRefresh}
|
|
98
|
+
* />
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* // 날짜 범위 포함 / With date range
|
|
102
|
+
* <DashboardToolbar
|
|
103
|
+
* title="매출 분석"
|
|
104
|
+
* dateRange={{
|
|
105
|
+
* value: { from: new Date("2024-01-01"), to: new Date("2024-12-31") },
|
|
106
|
+
* presets: [
|
|
107
|
+
* { label: "오늘", value: "today" },
|
|
108
|
+
* { label: "이번 주", value: "thisWeek" },
|
|
109
|
+
* { label: "이번 달", value: "thisMonth" }
|
|
110
|
+
* ],
|
|
111
|
+
* onSelectPreset: handlePresetSelect,
|
|
112
|
+
* onCustomRange: handleCustomRange
|
|
113
|
+
* }}
|
|
114
|
+
* />
|
|
115
|
+
*
|
|
116
|
+
* @param {DashboardToolbarProps} props - DashboardToolbar 컴포넌트의 props / DashboardToolbar component props
|
|
117
|
+
* @param {React.Ref<HTMLDivElement>} ref - div 요소 ref / div element ref
|
|
118
|
+
* @returns {JSX.Element} DashboardToolbar 컴포넌트 / DashboardToolbar component
|
|
119
|
+
*/
|
|
120
|
+
declare const DashboardToolbar: React.ForwardRefExoticComponent<DashboardToolbarProps & React.RefAttributes<HTMLDivElement>>;
|
|
121
|
+
|
|
122
|
+
export { DashboardToolbar as D, type ToolbarAction as T, type DashboardToolbarProps as a, type DatePreset as b, type DateRangeConfig as c };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { I as IconName } from './icons-DcOBy9Hf.mjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* DashboardEmptyState 컴포넌트의 props / DashboardEmptyState component props
|
|
6
|
+
* @typedef {Object} DashboardEmptyStateProps
|
|
7
|
+
* @property {IconName | React.ReactNode} [icon="inbox"] - 아이콘 / Icon
|
|
8
|
+
* @property {string} title - 제목 / Title
|
|
9
|
+
* @property {string} [description] - 설명 / Description
|
|
10
|
+
* @property {string} [actionText] - 액션 버튼 텍스트 / Action button text
|
|
11
|
+
* @property {string} [actionHref] - 액션 버튼 링크 URL / Action button link URL
|
|
12
|
+
* @property {() => void} [actionOnClick] - 액션 버튼 클릭 핸들러 / Action button click handler
|
|
13
|
+
* @property {"default" | "warning" | "info" | "error" | "success"} [variant="default"] - 스타일 변형 / Style variant
|
|
14
|
+
* @property {"sm" | "md" | "lg"} [size="md"] - 크기 / Size
|
|
15
|
+
* @property {string} [dot] - dot 유틸리티 스트링 / dot utility string
|
|
16
|
+
*/
|
|
17
|
+
interface DashboardEmptyStateProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "className"> {
|
|
18
|
+
icon?: IconName | React.ReactNode;
|
|
19
|
+
title: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
actionText?: string;
|
|
22
|
+
actionHref?: string;
|
|
23
|
+
actionOnClick?: () => void;
|
|
24
|
+
variant?: "default" | "warning" | "info" | "error" | "success";
|
|
25
|
+
size?: "sm" | "md" | "lg";
|
|
26
|
+
dot?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* DashboardEmptyState 컴포넌트
|
|
30
|
+
*
|
|
31
|
+
* 대시보드에서 빈 상태를 표시하는 컴포넌트입니다.
|
|
32
|
+
* 데이터가 없을 때 사용자에게 안내 메시지와 액션을 제공합니다.
|
|
33
|
+
*
|
|
34
|
+
* Empty state component for dashboards.
|
|
35
|
+
* Displays a message and action when there is no data to show.
|
|
36
|
+
*
|
|
37
|
+
* @component
|
|
38
|
+
* @example
|
|
39
|
+
* // 기본 사용 / Basic usage
|
|
40
|
+
* <DashboardEmptyState
|
|
41
|
+
* icon="inbox"
|
|
42
|
+
* title="데이터가 없습니다"
|
|
43
|
+
* description="새로운 데이터를 추가해보세요"
|
|
44
|
+
* actionText="데이터 추가"
|
|
45
|
+
* actionOnClick={handleAdd}
|
|
46
|
+
* />
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* // 경고 스타일 / Warning style
|
|
50
|
+
* <DashboardEmptyState
|
|
51
|
+
* icon="warning"
|
|
52
|
+
* title="오류가 발생했습니다"
|
|
53
|
+
* description="잠시 후 다시 시도해주세요"
|
|
54
|
+
* variant="warning"
|
|
55
|
+
* size="lg"
|
|
56
|
+
* />
|
|
57
|
+
*
|
|
58
|
+
* @param {DashboardEmptyStateProps} props - DashboardEmptyState 컴포넌트의 props / DashboardEmptyState component props
|
|
59
|
+
* @param {React.Ref<HTMLDivElement>} ref - div 요소 ref / div element ref
|
|
60
|
+
* @returns {JSX.Element} DashboardEmptyState 컴포넌트 / DashboardEmptyState component
|
|
61
|
+
*/
|
|
62
|
+
declare const DashboardEmptyState: React.ForwardRefExoticComponent<DashboardEmptyStateProps & React.RefAttributes<HTMLDivElement>>;
|
|
63
|
+
|
|
64
|
+
export { DashboardEmptyState as D, type DashboardEmptyStateProps as a };
|
|
@@ -12,9 +12,9 @@ import React from 'react';
|
|
|
12
12
|
* @property {string} [title] - 모달 제목 / Modal title
|
|
13
13
|
* @property {string} [description] - 모달 설명 / Modal description
|
|
14
14
|
* @property {boolean} [showBackdrop=true] - 배경 오버레이 표시 여부 / Show backdrop overlay
|
|
15
|
-
* @property {string} [
|
|
15
|
+
* @property {string} [backdropDot] - 배경 오버레이 추가 dot 스트링 / Additional dot string for backdrop
|
|
16
16
|
* @property {boolean} [centered=true] - 모달을 화면 중앙에 배치할지 여부 / Center modal on screen
|
|
17
|
-
* @property {
|
|
17
|
+
* @property {React.CSSProperties} [style] - 모달 컨테이너 인라인 스타일 / Inline style for modal container
|
|
18
18
|
*/
|
|
19
19
|
interface ModalProps {
|
|
20
20
|
/** 모달 열림/닫힘 상태 / Modal open/close state */
|
|
@@ -35,12 +35,18 @@ interface ModalProps {
|
|
|
35
35
|
description?: string;
|
|
36
36
|
/** 배경 오버레이 표시 여부 / Show backdrop overlay */
|
|
37
37
|
showBackdrop?: boolean;
|
|
38
|
-
/** 배경 오버레이 추가
|
|
39
|
-
|
|
38
|
+
/** 배경 오버레이 추가 dot 스트링 / Additional dot string for backdrop */
|
|
39
|
+
backdropDot?: string;
|
|
40
40
|
/** 모달을 화면 중앙에 배치할지 여부 / Center modal on screen */
|
|
41
41
|
centered?: boolean;
|
|
42
|
-
/** 모달 컨테이너
|
|
43
|
-
|
|
42
|
+
/** 모달 컨테이너 둥글기 / Modal container border-radius */
|
|
43
|
+
rounded?: "none" | "sm" | "md" | "lg" | "xl" | "full";
|
|
44
|
+
/** 모달 그림자 / Modal shadow */
|
|
45
|
+
shadow?: "none" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
46
|
+
/** dot 유틸리티 스트링 (인라인 스타일로 변환) / dot utility string (converted to inline style) */
|
|
47
|
+
dot?: string;
|
|
48
|
+
/** 인라인 스타일 / Inline style */
|
|
49
|
+
style?: React.CSSProperties;
|
|
44
50
|
}
|
|
45
51
|
/**
|
|
46
52
|
* Modal 컴포넌트 / Modal component
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import { VariantProps } from 'class-variance-authority';
|
|
4
2
|
|
|
5
3
|
/**
|
|
6
4
|
* Container 컴포넌트의 props
|
|
7
5
|
*/
|
|
8
|
-
interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
interface ContainerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'className'> {
|
|
9
7
|
size?: "sm" | "md" | "lg" | "xl" | "full";
|
|
10
8
|
padding?: "none" | "sm" | "md" | "lg" | "xl";
|
|
11
9
|
centered?: boolean;
|
|
12
10
|
fluid?: boolean;
|
|
11
|
+
dot?: string;
|
|
13
12
|
}
|
|
14
13
|
/**
|
|
15
14
|
* Container 컴포넌트
|
|
@@ -24,10 +23,6 @@ interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
24
23
|
*/
|
|
25
24
|
declare const Container: React.ForwardRefExoticComponent<ContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
26
25
|
|
|
27
|
-
declare const sectionVariants: (props?: ({
|
|
28
|
-
spacing?: "sm" | "md" | "lg" | "xl" | "none" | null | undefined;
|
|
29
|
-
background?: "none" | "primary" | "muted" | "accent" | null | undefined;
|
|
30
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
31
26
|
interface SectionHeaderConfig {
|
|
32
27
|
title: string;
|
|
33
28
|
subtitle?: string;
|
|
@@ -35,17 +30,21 @@ interface SectionHeaderConfig {
|
|
|
35
30
|
/** section-line 데코레이터 표시 @default true */
|
|
36
31
|
decorator?: boolean;
|
|
37
32
|
/** 텍스트 정렬 @default 'center' */
|
|
38
|
-
align?:
|
|
33
|
+
align?: "left" | "center";
|
|
39
34
|
}
|
|
40
|
-
interface SectionProps extends React.HTMLAttributes<HTMLElement>,
|
|
35
|
+
interface SectionProps extends Omit<React.HTMLAttributes<HTMLElement>, "className"> {
|
|
41
36
|
/** Container 사이즈 @default 'lg' */
|
|
42
|
-
container?: ContainerProps[
|
|
37
|
+
container?: ContainerProps["size"];
|
|
43
38
|
/** Container 패딩 @default 'none' */
|
|
44
|
-
containerPadding?: ContainerProps[
|
|
39
|
+
containerPadding?: ContainerProps["padding"];
|
|
45
40
|
/** 섹션 헤더 설정 */
|
|
46
41
|
header?: SectionHeaderConfig;
|
|
47
42
|
/** 풀위드 모드 (Container 없이 직접) */
|
|
48
43
|
fullWidth?: boolean;
|
|
44
|
+
spacing?: "none" | "sm" | "md" | "lg" | "xl";
|
|
45
|
+
background?: "none" | "muted" | "accent" | "primary";
|
|
46
|
+
dot?: string;
|
|
47
|
+
style?: React.CSSProperties;
|
|
49
48
|
}
|
|
50
49
|
/**
|
|
51
50
|
* Section 컴포넌트
|
|
@@ -64,4 +63,4 @@ interface SectionProps extends React.HTMLAttributes<HTMLElement>, VariantProps<t
|
|
|
64
63
|
*/
|
|
65
64
|
declare const Section: React.ForwardRefExoticComponent<SectionProps & React.RefAttributes<HTMLElement>>;
|
|
66
65
|
|
|
67
|
-
export { Container as C, type SectionProps as S, type ContainerProps as a, Section as b, type SectionHeaderConfig as c
|
|
66
|
+
export { Container as C, type SectionProps as S, type ContainerProps as a, Section as b, type SectionHeaderConfig as c };
|